<?php

class Core_Form_Admin_Mail_Template extends Form
{
	function init()
	{
		$this -> addChild('text', 'subject', array(
			'label' => 'Subject',
			'rules' => array('required')
		));

		$this -> addChild('select', 'lang', array(
			'label' => 'Language',
			'rules' => array('required'),
			'multiOptions' => I18n::getAllLanguages(),
		));

		$this -> addChild('textarea', 'body_text', array(
			'label' => 'Body Text',
			'rules' => array('required')
		));

		$this -> addChild('textarea', 'body_html', array(
			'label' => 'Body Html',
			'rules' => array('required')
		));

		$this -> addChild('group', 'buttons');
		$this -> buttons -> addChild('submit', '_submit') -> addChild('cancel', '_cancel');
	}

}
